//
//  ActModel.m
//  电影豆瓣--完整版
//
//  Created by dllo on 15/12/31.
//  Copyright © 2015年 lanou. All rights reserved.
//

#import "ActModel.h"

@implementation ActModel


- (void)dealloc {
    [_title release];
    [_beginTime release];
    [_endTime release];
    [_address release];
    [_category_name release];
    [_wisher_count release];
    [_participant_count release];
    [super dealloc];
 
}

+ (ActModel *)actModel {
    return [[[ActModel alloc] init] autorelease];
}

// 容错方法
- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    if ([key isEqualToString:@"begin_time"]) {
        self.beginTime = [value substringWithRange:NSMakeRange(5, 11)];
    }
    if ([key isEqualToString:@"end_time"]) {
        self.endTime = [value substringWithRange:NSMakeRange(5, 11)];
    }
 
    
}


-(id)valueForKey:(NSString *)key {
    return nil;
}






@end
